package test

import (
	"fmt"
	"github.com/kataras/iris/v12"
)
type Person struct {
	Name    string `url:"name,required"`
	Address string `url:"address"`
}
func Index(ctx iris.Context)  {
	var person Person
	if err := ctx.ReadBody(&person); err!=nil {
		ctx.StopWithError(iris.StatusBadGateway,err)

		return
	}

	ctx.Application().Logger().Infof("Person: %#+v", person)
	ctx.WriteString("Success")
}
func test()  {
	fmt.Println("fuckyou")
}